package qqcommon;

import java.io.Serializable;

//通讯信息类
public class Message implements Serializable {
    private static final long serialVersionUID = 1L;//增加对象序列化的兼容性标记
    private String sender;//发送者
    private String receiver;//接受者
    private String content;//通讯内容
    private String time;//通讯时间
    private String mesType;//消息类型【可以在接口中定义】

    //    文件相关属性
    private String fileSrc;//文件源路径
    private String fileDes;//文件目标路径
    private int fileSize;//文件字节数
    private String fileName;//文件名
    private byte[] fileContent;//文件字节内容

    public byte[] getFileContent() {
        return fileContent;
    }

    public void setFileContent(byte[] fileContent) {
        this.fileContent = fileContent;
    }

    public String getFileSrc() {
        return fileSrc;
    }

    public void setFileSrc(String fileSrc) {
        this.fileSrc = fileSrc;
    }

    public String getFileDes() {
        return fileDes;
    }

    public void setFileDes(String fileDes) {
        this.fileDes = fileDes;
    }

    public int getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Message() {
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getMesType() {
        return mesType;
    }

    public void setMesType(String mesType) {
        this.mesType = mesType;
    }
}
